package DomainLayer;

public class Speciality extends AbstractValueObject{

    String speciality;

    public Speciality(){
        super();
        speciality = null;
    }

    public Speciality(Speciality currentState, Object... changes){
        super(currentState, changes[0]);
        speciality = (changes[1] != null ? ((String) changes[1]).toString()
                : currentState.speciality);
    }

    public String getSpeciality(){
        return  speciality;
    }
}
